import Mock from "mockjs";
var data = Mock.mock({
    // 20条数据
    "data|30": [{

        "goodsNum|202112131657-202201301598": 202112131657,
        // 商品Id
        "Id|+1": 1,

        "telephone|13014567895-18815681236": 13014567895,

        "Stime": "2021年12月01日",
        //商品图片
        "goodsWages": "转账-来自公司加班补贴",
        "goodsPay": "支付宝",
        //商品售价
        "goodsSale|30-500": 30

    }]
})

class SaleService {
    getData() {
            return Promise.resolve({
                data,
            });
        }
        // delete(id) {
        //     // data = data.data.filter(item => item.goodId !== id)
        //     // return Promise.resolve(true);
        // }
}

const service = new SaleService();
export default service;